# -*- coding: utf-8 -*-

def index():
    buttons = {
        i: SPAN(A(i, _href = URL('screens', i), cid = 'display', _class = 'button', _style = 'color: #222'), _id = 'button_' + i, _onclick = 'jQuery("#display").hide()') \
        for i in ('config', 'log', 'rules', 'conn_tab')}
        
    buttons['back'] = SPAN(A('<', _href = URL('screens', 'back'), cid = 'display', _class = 'button'),
        _id = 'button_back', _onclick = 'jQuery("#display").hide()', _class = 'hidden')
    
    return dict(buttons = buttons)
